package com.fingard.dsp.bank.reqrespobj.sendsmscode;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.sendsmscode.detail.ReqCheckSmsCodeDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by F on 2018/7/9.
 */
public class ReqCheckSmsCode extends RequestBase {
    public ReqCheckSmsCodeDetail smsCodeDetail = null;
    private XmlTextReader xmlReader;

    public ReqCheckSmsCode(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        xmlReader = p_xmlReader;
        reqHeader = p_header;
        if(xmlReader.read(PATH_Detail)){
            smsCodeDetail = new ReqCheckSmsCodeDetail(xmlReader.readedXElement);
        }else{
            throw new Exception("不存在节点："+PATH_Detail);
        }
    }
}
